package com.eshop.modules.product.service.dto;

import java.io.Serializable;

public class StoreProductSmallDto implements Serializable
{
    private Integer id;
    private String image;
    private String storeName;
    
    public Integer getId() {
        return this.id;
    }
    
    public String getImage() {
        return this.image;
    }
    
    public String getStoreName() {
        return this.storeName;
    }
    
    public void setId(final Integer id) {
        this.id = id;
    }
    
    public void setImage(final String image) {
        this.image = image;
    }
    
    public void setStoreName(final String storeName) {
        this.storeName = storeName;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof StoreProductSmallDto)) {
            return false;
        }
        final StoreProductSmallDto other = (StoreProductSmallDto)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$id = this.getId();
        final Object other$id = other.getId();
        Label_0065: {
            if (this$id == null) {
                if (other$id == null) {
                    break Label_0065;
                }
            }
            else if (this$id.equals(other$id)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$image = this.getImage();
        final Object other$image = other.getImage();
        Label_0102: {
            if (this$image == null) {
                if (other$image == null) {
                    break Label_0102;
                }
            }
            else if (this$image.equals(other$image)) {
                break Label_0102;
            }
            return false;
        }
        final Object this$storeName = this.getStoreName();
        final Object other$storeName = other.getStoreName();
        if (this$storeName == null) {
            if (other$storeName == null) {
                return true;
            }
        }
        else if (this$storeName.equals(other$storeName)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof StoreProductSmallDto;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $id = this.getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        final Object $image = this.getImage();
        result = result * 59 + (($image == null) ? 43 : $image.hashCode());
        final Object $storeName = this.getStoreName();
        result = result * 59 + (($storeName == null) ? 43 : $storeName.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "StoreProductSmallDto(id=" + this.getId() + ", image=" + this.getImage() + ", storeName=" + this.getStoreName() + ")";
    }
}
